<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>

    <div class="tab-wrap">
        <ul class="tab-nav nav">
            <li data-tab="tab1" class="current"><a>基 础</a></li>
        </ul>
        <div class="tab-content">
            <form action="{:U('update')}" method="post" class="form-horizontal" enctype="multipart/form-data">
                <input type="text" class="hidden" name="id" value="{$info['id']}">
                <div class="form-item">
                    <label class="item-label">名称</label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="name" value="{$info['name']}">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">金额<span class="check-tips">(充值金额)</span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="amount" value="{$info['amount']}">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">买x<span class="check-tips"></span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="buy" value="{$info['buy']}">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">送x<span class="check-tips"></span></label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="send" value="{$info['send']}">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">会员天数<span class="check-tips">(请输入大于0的正整数)</span></label>
                    <div class="controls">
                        <input type="number" class="text input-large" name="days" value="{$info['days']}">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">描述<span class="check-tips">(前台会员描述)</span></label>
                    <div class="controls">
                        <textarea class="textarea input-large" name="description">{$info['description']}</textarea>
                    </div>
                </div>

                <div class="form-item">
                    <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
                    <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
                </div>
            </form>
        </div>
    </div>
</block>
<block name="script">
    <script type="text/javascript">
        $(function() {
            //导航高亮
            highlight_subnav("{:U('rule')}");
        });
    </script>
</block>